@import 'common.scss';
@import 'element_ui.scss';
html,body{
  width: 100%;
  height: 100%;
  position: relative;
  // 去点滚动条
  ::-webkit-scrollbar{
    display:none;
  }
}
body{
    line-height: 1.15;
    font-size: 0.5rem;
    margin: 0;
    padding: 0;
    background: #101129;
    background-repeat: no-repeat;
    // background-position: center;
    background-size: contain;
}

*{
    margin: 0;
    padding: 0;
    // font-weight: normal;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}

.viewport {
  /* 限定大小 */
  width: 100%;
  min-width: 1024px;
  max-width: 1920px;
  // height: calc(100% - 85px);
  height: 88%;
  max-height: 855px;
  min-height: 760px;
  margin: 0 auto;
  display: flex;
  flex: 1;
  flex-direction: column;
}
// 头部设置
.header {
  display: flex;
  height: 9%;
  // flex: 0;
  width: 100%;
  // padding-bottom: 5px;
  margin-bottom: 5px;
  background: url(../images/top_bg.png) no-repeat  center/cover;
  justify-content: space-between;
  align-items: center;
  .column-top{
    display: flex;
    height: 100%;
    width: 30%;
    color: #fff;
    align-items: center;
    &.logo{
      width: 40%;
      justify-content: center;
      img{
        width: 70%;
        height: 80%;
      }
    }
    // 菜单按钮
    &.menu{
      text-align: left;
      i{
        font-size: 1.5rem;
        margin-left: 1rem;
        margin-top: 0.25rem;
        cursor: pointer;
      }
    }
    &.user{
      justify-content: flex-end;
      .userinfo{
        display: flex;
        color: #fff;
        font-weight: 500;
        margin-top: 0.4rem;
        align-items: center;
        i{
          font-size: 30px;
          margin: 0 1.5rem 0 0.5rem;
        }
      }
    }
  }
}
// 主体部分
.main_content{
  display: flex;
  // width: 99%;
  height: 100%;
  background: #fff;
  padding: 0.267rem 0.833rem 0;
  justify-content: space-between;
  overflow: hidden;
}
.column{
  display: flex;
  width: 30%;
  height: 98%;
  margin: 0.15rem 0 0.5rem 0;
  flex-direction: column;
  justify-content: space-between;
}
.column:nth-child(2){
  width: 40%;
  margin: 0.15rem 0.833rem 0.5rem;
}

.panel{
  height: 32%;
  // display: block;
  // height: 270px;
  box-sizing: border-box;
  border: 1px solid #6dcbf1;
  overflow: hidden;
  .inner{
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .title{
    display: flex;
    width: 100%;
    height: 40px;
    // background: #6996f7;
    background-image: linear-gradient(to right, #6996f7, #7ea5f7);
    color: #fff;
    justify-content: flex-start;
    align-items: center;
    span.icon{
      display: inline-block;
      width: 4px;
      height: 18px;
      background: #6ff3f2;
      background-image: linear-gradient(to bottom, #6ff3f2, #55bfdc);
      margin: 0 10px 0 5px;
    }
    h3{
      font-size: 0.875rem;
    }
  }
  .chart{
    flex: 1;
    width: 100%;
    height: calc(100% - 38px);
    .chartPart{
      width: 100%;
      height: 100%;
    }
  }
}
.wrapper{
  .table{
    width: 100%;
    height: 100%;
  }
}

.cpuDetail, .legendWraper .inner{
  position: relative;
  .legend {
    position: absolute;
    right: 10px;
    bottom: 5%;
    width: 23%;
    ul li{
      line-height: 18px;
      font-size: 10px;
      color: #262626;
      i{
        display: inline-block;
        width: 15px;
        height: 10px;
        margin-right: 10px;
        border-radius: 2px;
      }
      &:nth-child(1) i{
        background: #98d26f;
      }
      &:nth-child(2) i{
        background: #a98cd1;
      }
      &:nth-child(3) i{
        background: #6caded;
      }
      &:nth-child(4) i{
        background: #f8cd77;
      }
      &:nth-child(5) i{
        background: #f19e9c;
      }
    }
  }
  .memLegend{
    ul li{
      &:nth-child(1) i{
        background: #5caef8;
      }
      &:nth-child(2) i{
        background: #aca5ef;
      }
      &:nth-child(3) i{
        background: #78ead5;
      }
      &:nth-child(4) i{
        background: #60d08e;
      }
      &:nth-child(5) i{
        background: #e9bc60;
      }
    }
  }
  .portalLegend{
    position: absolute;
    top: 10px;
    right: 15px;
    ul li {
      display: inline-block;
      color: #fff;
      font-weight: 500;
      margin: 0 5px;
      i{
        display: inline-block;
        padding: 3px 5px;
        margin-right: 3px;
        color: #fff;
        border-radius: 2px;
        font-style: normal;
        text-align: center;
        background: #6caded;
      }
      &:nth-child(1) i{
        background: #ce5c4e;
        // background: linear-gradient(to bottom, #efab82 0%, #c46632 100%);
      }
      &:nth-child(2) i{
        background: #efab82;
      }
      &:nth-child(3) i{
        background: #5ab6d0;
      }
      &:nth-child(4) i{
        background: #6facef;
      }
      &:nth-child(5) i{
        background: #53b584;
      }
    }
  }
}

// map
.map{
    position: relative;
    height: 66%;
    background: rgba(0, 0, 0, 0.1);
    // opacity: 0.5;
    .chartPart{
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }
    .tools{
      position: absolute;
      top: 15px;
      left: 10px;
      z-index: 999;
      span{
        display: inline-block;
        padding: 5px 10px ;
        margin: 0 5px;
        color: #666;
        font-size: 12px;
        font-weight: bold;
        border: 1px solid #fff;
        border-radius: 5px;
        cursor: pointer;
        &.active{
          color: #6180e0;
          border-color: #6180e0;
        }
      }
    }
}

.themeUl .el-radio{
  margin-right: 15px !important;
}
// 详情对话框
.dialog_main .elRow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  &.firstRow{
    height: 40%;
    // flex: 0;
    // height: 18.75rem;
    .cpuDetail{
      width: 25%;
      height: 100%;
      &:nth-child(2) {
        width: 35%;
      }
      &:nth-child(3) {
        width: 35%;
      }
    }
  }
  &.secRow{
    flex: 1;
    height: calc(100% - 20rem);
    margin-top: 20px;
    .tableWrapper{
      width: 100%;
    }
  }
}
